package com.guigu.exam.mapper;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.guigu.exam.entity.Question;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.exam.vo.QuestionQueryDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 题目Mapper接口
 * 继承MyBatis Plus的BaseMapper，提供基础的CRUD操作
 */
public interface QuestionMapper extends BaseMapper<Question> {


    List<Map<Long, Long>> getCategoryCount();

    Page<Question> getPageByCondition(Page<Question> questionPage, QuestionQueryDto queryDto);

    Question getQuestionDetailsById(Long id);
}